Replication files for ``Real Exchange Rate and External Balance:How Important Are Price Deflators?''

 JaeBin Ahn, Rui Mano, Jing Zhou
May 2020

1-	Empirics
--      install first user-written commands if not already installed -- ssc install xxxx
--       sutex 
--       xtpmg
--       estout  
--	"MAIN.do" produces Table 1-5 and Chart 1 in the main text
--	"newforECMquarterly.dta" is the quarterly data
--	"newforECMannual.dta" is the annual data
--	code is tested on Stata 15
--      if running on Stata 15.1 or later, an edit to xtpmg is needed, as unfortunately the predict command was changed from Stata 15.1 onwards
--       find xtpmg.ado (in the plus directory, type sysdir to find path)
--       edit xtpmg.ado in the following way:
1)	edit line 383 to be quie predict double `ec'tmp if `touse', eq(`ec')  tmp added after `ec' and before if
2)	add an entirely new line beneath ren `ec'tmp `ec'

2-	Model
--	"MAIN.m" produces the IRFs and related Figures 
--	code is tested on Matlab R2017b and Dynare 4.5.0